package com.dhecp.project.api.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.api.domain.AccountDetailedForCompany;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 公司账户流水 DAO
 * @author DH-Xxj
 * @version 2022年10月10日
 */
public interface AccountDetailedForCompanyMapper extends GenericDao<AccountDetailedForCompany, String>{
	
	/**
	 * 查询
	 * @param params
	 * @return List - AccountDetailedForCompany
	 * @author DH-Xxj
	 */
	List<AccountDetailedForCompany> selectAll(Map<String, Object> params);
	
	/**
	 * 查询汇总金额
	 * @param params
	 * @return List - AccountDetailedForCompany
	 * @author DH-Xxj
	 */
	List<AccountDetailedForCompany> selectCountAll(Map<String, Object> params);
	
	/**
	 * 查询指定公司的汇总金额
	 * @param vGsBm 必要参数：公司编码
	 * @return AccountDetailedForCompany 实体
	 * @author DH-Xxj
	 */
	AccountDetailedForCompany selectCountByVGsBm(@Param("vGsBm") String vGsBm);

	/**
	 * 批量流水数据
	 * @param list
	 * @return
	 */
	int insertAccountDetailedForCompanyBatch(List<AccountDetailedForCompany> list);

	/**
	 * 批量新增但是无需资金判断
	 * @param list
	 * @return
	 */
	int insertBatchNew(List<AccountDetailedForCompany> list);

}
